package com.cykj.pos.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.HashMap;
import java.util.Map;

/**
 * 结算末班
 *
 * @author zephyr
 * @date 2025-01-20
 */
@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@Accessors(chain = true)
@TableName("withdrawal_rate_template")
public class WithdrawalRateTemplate implements Serializable {

    private static final long serialVersionUID=1L;

    /** 主键 */
    @TableId(value = "id")
    private Long id;

    private Long userId;

    private BigDecimal profitRate;//分润提现费率

    private BigDecimal profitFee;//分润提现服务费

    private BigDecimal rewardRate;//返现提现费率

    private BigDecimal rewardFee;//返现单笔服务费

    private String var1;// 0默认1启用2废弃

    private String var2;

    private String var3;

    @TableField(exist = false)
    private Map<String, Object> params = new HashMap<>();
}
